namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("V_RL_COLLECT_HOUR")]
    public partial class V_RL_COLLECT_HOUR
    {
        [Key]
        [Column(Order = 0)]
        public decimal DEVICE_ID { get; set; }

        [StringLength(40)]
        public string DEVICE_NAME { get; set; }

        public decimal? DEVICE_TYPE { get; set; }

        [StringLength(6)]
        public string DEVICE_TYPE_STR { get; set; }

        public decimal? BUSINESS_TYPE { get; set; }

        [StringLength(4)]
        public string BUSINESS_TYPE_STR { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public short H_YEAR { get; set; }

        [Key]
        [Column(Order = 2)]
        public byte H_MONTH { get; set; }

        [Key]
        [Column(Order = 3)]
        public byte H_DAY { get; set; }

        [Key]
        [Column(Order = 4)]
        public byte H_HOUR { get; set; }

        public decimal? VALUE { get; set; }

        public DateTime? TIME { get; set; }
    }
}
